package com.itycu.server.mapper.business;

import java.util.List;
import com.itycu.server.core.Mapper;
import com.itycu.server.domain.business.PraPractice;
import com.itycu.server.dto.business.PraPracticeDto;
import org.apache.ibatis.annotations.Select;

/**
 * 练习Mapper接口
 *
 * @author itycu
 * @date 2025-02-18
 */
public interface PraPracticeMapper extends Mapper<PraPractice> {
    /**
     * 查询练习列表
     *
     * @param praPractice 练习
     * @return 练习集合
     */
    List<PraPracticeDto> listByCondition(PraPractice praPractice);

    PraPracticeDto findById(Long id);

    @Select("select * from pra_practice where id = #{id}")
    PraPracticeDto findById1(Long id);
}
